package com.thz.friend.mapper.video;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thz.friend.pojo.video.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/11
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {
    @Select("select COUNT(*) FROM tb_video WHERE course_id=#{courseId}")
    Integer selectCourseVideoCount(Long courseId);
}
